<script type="text/javascript">
	if (typeof(TrainingIndex) != 'function'){		
		var arr = <?= ($this->arrJsCss != '')?$this->arrJsCss:"''"?>;			
		loadfileJsCss(arr);
	}		
</script>
<?php echo $this->leftTree;?>
<div class = "have_tree content-view">
	<div class = "load_data_form_index ctlist">
		<form action="" method="POST" id="TrainingIndexFrm" name="TrainingIndexFrm" autocomplete="off">
			<!--Cac doi tuong hidden tren form-->
			<?php
				echo $this->formHidden("hdn_current_page",$this->iCurrentPage,null);
				echo $this->formHidden("hdn_record_number_page",$this->iNumberRecordPerPage,null);
				echo $this->formHidden("hdn_object_id_list","",null);
				echo $this->formHidden("hdn_list_id","",null);
				echo $this->formHidden("p_hidden_obj","",null);
				echo $this->formHidden("recordTypehdn","",null);
				echo $this->formHidden("groupRecordTypehdn","",null);
				echo $this->formHidden("hdn_number",$this->iNumberRecordAll,null); 	
				echo $this->formHidden("td03",'',null); 	
				echo $this->formHidden("td03name",'',null); 
				echo $this->formHidden('TD01hdn','',null);
				$arrConst = $this->arrConst;		
			?>
			<div class = "searh-fixed filterdata">
				<div class = "normal_title">
					<?=$this->titleBody;?>				
				</div>
				<div class="search-container info_general">	
					<table id="table-search" >
						<col width="15%"></col><col width="25%"></col><col width="45%"></col><col width="15%"></col>
						<tr>
							<td colspan="3"><input type="text" class="textbox" id="td18" name="td18" style="width: 99%;"></td>	
							<td><input type = "button" value = "Tìm kiếm" class = "link-button searchbtn" id = "searchbtn"></td>
						</tr>
					</table>
				</div> 
				<div align="right" class="button-link-container">
					<div class="blc-left">
                        <div style="font-family: arial; font-size: 13px; font-weight: bold;">
                            <input type="checkbox" onclick="checkbox_all_item_id(document.forms[0].chk_item_id);markcheck();" id="chk_all_item_id" name="chk_all_item_id"><label for="chk_all_item_id">Chọn tất cả</label>
                        </div>
					</div>
					<div class="blc-right">
						<input type="button" style="display:inline" class="link-button addrecord" value="Thêm" title="Thêm" id="add">
						<input type="button" class="link-button editecord" value="Sửa" title="Sửa" id="edit">
						<input type="button" style="display:inline" class="link-button deleterecord" value="Xóa" title="Xóa" id="delete">
					</div>
				</div>
				<div id="loadTreeUrl" class="breadcrumbs"></div>
				<!-- Action lien quan -->		
			</div>
			<!-- Màn hình danh sách -->
			<div id = "table-container" ></div>
			<!--Hien thi trang can xem!-->
			<table class="table-page-number dsppage" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td class = "left-col small_label" valign="top">
						<small class="small_starmark" id = "sdocpertotal"></small>
					</td>
					<td class = "center-col" align="center" id = "generateStringNumberPage"></td>
					<td class = "right-col normal_label" id = "generateHtmlSelectBoxPage">Hiển thị <select class='textbox' id = 'cbo_nuber_record_page' name='cbo_nuber_record_page' optional='true' style='width:60'><?php 
						echo Efy_Library::_generateSelectOptionTab($this->arrListItem, 'C_CODE', 'C_CODE', 'C_NAME', $this->arrListItem[0]);
					?></select>Hồ sơ/1 trang</td>
				</tr>
			</table>
		</form>	
	</div>
	<div id = "load_data_form_update"></div>
	<div id = "load_diary"></div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
	// alert(dataTreeTranning.length);
        $("#chk_item_id").change(function () {
            $(this.checked);
        });
    });
    
    $(".chzn-select").chosen();
	baseUrl = '<?=$this->baseUrl();?>';		
	var objXmlTemp = '';
	if(typeof(myTrainingIndex) === 'undefined'){						
		myTrainingIndex = new TrainingIndex(baseUrl,'mtl','training','trainingindexdata', objXmlTemp);			
	}else{			
		objXmlTemp = myTrainingIndex.xmlData;			
		myTrainingIndex = new TrainingIndex(baseUrl,'mtl','training','trainingindexdata',objXmlTemp);
	}				
	urlPath = myTrainingIndex.urlPath;	
	fixTitle();		
	//myTrainingIndex.loadTreefrm();
	myTrainingIndex.ldmod();		
	var url = myTrainingIndex.urlPath + '/loadtree';
	

	$('#push-left-img,#push-left-img-hide').click(function(){
		reziseli();
	})
	
	
</script>	
<style type="text/css">
.ui-widget-header {
		background: none;
		background-color: #3774B7;
		border-bottom: 1px solid #BCCDDD;
		border-color: #BCCDDD;
		box-shadow: 0 0 2px rgba(0, 0, 0, 0.52);
		font-family: Arial,Helvetica,sans-serif;
		text-align: center;
		font-size: 11px;
		font-weight: bold;
		color: #FFF701;
		line-height: 20px;
		padding: 0 1px !important;
	}
.jstree-default a.jstree-search {
color: #1A62B4;
font-weight: bold;
}
</style>
